package com.aichongbang.acb.controller;


import com.aichongbang.acb.po.Customer;
import com.aichongbang.acb.po.Pet;
import com.aichongbang.acb.service.ICustomerService;
import com.aichongbang.acb.service.IPetService;
import com.aichongbang.acb.util.ResultVO;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author acb
 * @since 2021-05-27
 */
@RestController
@RequestMapping("/customer")
public class CustomerController {
    @Resource
    private ICustomerService iCustomerService;
    @GetMapping(value = "/list")
    @ResponseBody
    public ResultVO getAll(){
        List<Customer> userVOList = iCustomerService.getAll();
        return ResultVO.success(userVOList);
    }
}
